package com.huika.renrench.control.my.adapter;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.huika.renrench.R;
import com.huika.renrench.control.common.base.BaseAda;
import com.huika.renrench.support.bean.ProTypeBean;

public class MyProClassifyAdapter extends BaseAda<ProTypeBean>{

	public MyProClassifyAdapter(Context context) {
		super(context);
	}

	@Override
	public View getView(int position, View convertView, ViewGroup parent) {
		ViewHolder vh = null;
		if (convertView==null) {
			convertView = mInflater.inflate(R.layout.item_mypro_classify, parent, false);
			vh = new ViewHolder();
			vh.tv = (TextView) convertView.findViewById(R.id.tv_impc);
			convertView.setTag(vh);
		}else{
			vh = (ViewHolder) convertView.getTag();
		}
		ProTypeBean bean = getItem(position);
		vh.tv.setText(bean.getTypeName());
		return convertView;
	}
	
	class ViewHolder{
		TextView tv;
	}

}
